#pragma once

#include "Platform/Platform.h"

class XGateway
{
public:
    XGateway(void);
    ~XGateway(void);

    BOOL Setup();
    void Clear();

    void Run();

    void Quit() {m_bRunFlag = false;}

    time_t m_uBaseTime;
    time_t m_uTimeNow;

private:
    BOOL        m_bRunFlag;
    ISocketMgr* m_piSocketMgr;
};

extern XGateway* g_pGateway;